.student-card {
    cursor: pointer;
  }

  /* 其他样式保持不变 */
  .course-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .course-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .course-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
  }

  .back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .back-button:hover {
    background: #e5e7eb;
    transform: translateX(-2px);
  }

  .course-header-actions {
    display: flex;
    gap: 12px;
  }

  .course-info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  .course-info-header {
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
  }

  .course-info-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }

  .course-info-body {
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }

  .course-info-item {
    flex: 1;
    min-width: 200px;
  }

  .info-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
  }

  .info-value {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
  }

  /* 管理页面导航 */
  .admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .admin-nav-item:hover {
    background-color: #f3f4f6;
  }

  .admin-nav-item.active {
    background-color: #edf2fd;
    border-color: #3b82f6;
    color: #3b82f6;
  }

  .content-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 500px;
  }

  .dashboard-view, .student-list-view, .admin-panel {
    padding: 24px;
  }

  .dashboard-header, .student-list-header, .admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
  }

  .dashboard-header h3, .student-list-header h3, .admin-panel-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
  }

  .analytics-dashboard {
    width: 100%;
    min-height: 400px;
  }

  /* Student management styles */
  .student-management {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .batch-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
  }

  .student-selection {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .student-selection input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
  }

  .student-selection label {
    font-size: 14px;
    cursor: pointer;
  }

  .student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  .student-card {
    position: relative;
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
  }

  .student-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  .student-card.selected {
    background: rgba(59, 130, 246, 0.05);
    border-color: #3b82f6;
  }

  .student-selection-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .student-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .student-info {
    flex: 1;
    min-width: 0;
  }

  .student-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .student-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
  }

  .student-id, .student-class {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Loading and empty states */
  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
  }

  .loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e5e7eb;
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: #6b7280;
    text-align: center;
  }

  .empty-state svg {
    margin-bottom: 16px;
    color: #d1d5db;
  }

  .empty-state p {
    font-size: 16px;
    max-width: 300px;
  }

  /* Pagination */
  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
  }

  .pagination-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .pagination-button:hover:not(:disabled) {
    background: #f3f4f6;
    transform: translateY(-2px);
  }

  .pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .pagination-info {
    font-size: 14px;
    color: #6b7280;
  }

  /* Buttons */
  .action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
  }

  .action-button:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
  }

  .action-button.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  }

  .action-button.primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
  }

  .action-button.danger {
    background: #ef4444;
    border-color: #dc2626;
    color: white;
  }

  .action-button.danger:hover {
    background: #dc2626;
  }

  .action-button.small {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* 知识库列表样式 */
  .knowledge-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .knowledge-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
  }

  .knowledge-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
  }

  .knowledge-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
  }

  .knowledge-name {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
  }

  .knowledge-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .description {
    font-size: 0.875rem;
    color: #6b7280;
  }

  .stats {
    display: flex;
    gap: 0.75rem;
  }

  .document-count, .word-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
  }

  .knowledge-actions {
    display: flex;
    gap: 0.5rem;
  }

  .delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: #fee2e2;
    color: #ef4444;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .delete-btn:hover {
    background-color: #fecaca;
  }

  /* 文档列表样式 */
  .documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
  }

  .document-item:hover {
    background-color: #f3f4f6;
  }

  .document-info {
    flex: 1;
  }

  .document-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
  }

  .document-details {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
  }

  .document-date, .document-word-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .document-actions {
    display: flex;
    gap: 0.5rem;
  }

  /* 文档内容样式 */
  .document-content {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    max-height: 50vh;
    overflow-y: auto;
  }

  .document-content pre {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* 弹窗样式 */
  .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 100;
  }

  .modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 101;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
  }

  .modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
  }

  .close-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
  }

  .close-button:hover {
    background-color: #f3f4f6;
    color: #111827;
  }

  .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
  }

  .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
  }

  /* 表单样式 */
  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
  }

  .form-input, .form-textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
  }

  .form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  }

  .form-textarea {
    min-height: 100px;
    resize: vertical;
  }

  /* 添加文档样式 */
  .add-doc-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
  }

  .tab-button {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
  }

  .tab-button:hover {
    color: #4b5563;
  }

  .file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .file-upload-area:hover {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
  }

  .upload-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
  }

  .selected-file {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .file-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
  }

  .file-size {
    font-size: 0.75rem;
    color: #6b7280;
  }

  .remove-file {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
  }

  .remove-file:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
  }

  .hidden-input {
    display: none;
  }

  /* 删除确认样式 */
  .delete-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }

  .delete-warning svg {
    color: #ef4444;
  }

  .warning-text {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
  }

  /* 添加学生弹窗样式 */
  .add-student-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
  }

  .class-selection-tab, .manual-add-tab {
    width: 100%;
  }

  .preview-container {
    margin-top: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
  }

  .preview-header {
    padding: 10px 15px;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
  }

  .preview-header h4 {
    margin: 0;
    font-size: 14px;
  }

  .preview-students {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
  }

  .preview-student-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
  }

  .preview-student-item:hover {
    background-color: #f9fafb;
  }

  .student-preview {
    margin-top: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
  }

  .student-info-preview {
    padding: 15px;
  }

  .info-item {
    margin-bottom: 10px;
    display: flex;
  }

  .info-item .label {
    font-weight: 500;
    width: 60px;
  }

  .loading-container.small {
    padding: 20px;
  }

  .loading-container.small .loading-spinner {
    width: 30px;
    height: 30px;
  }

  .empty-state.small {
    padding: 30px;
    text-align: center;
    color: #6b7280;
  }

  /* 通知样式 */
  .notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    max-width: 24rem;
  }

  .notification.success {
    border-left: 4px solid #10b981;
  }

  .notification.error {
    border-left: 4px solid #ef4444;
  }

  .notification.info {
    border-left: 4px solid #3b82f6;
  }

  .notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .notification.success .notification-icon {
    color: #10b981;
  }

  .notification.error .notification-icon {
    color: #ef4444;
  }

  .notification.info .notification-icon {
    color: #3b82f6;
  }

  .notification-content {
    flex: 1;
    font-size: 0.875rem;
  }

  /* 动画 */
  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translate(-50%, -48%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* 响应式样式 */
  @media (max-width: 768px) {
    .course-detail-container {
      padding: 16px;
      gap: 16px;
    }

    .course-header h2 {
      font-size: 22px;
    }

    .course-info-body {
      flex-direction: column;
      gap: 16px;
    }

    .student-grid {
      grid-template-columns: 1fr;
    }

    .dashboard-view, .student-list-view, .admin-panel {
      padding: 16px;
    }

    .admin-nav {
      flex-wrap: wrap;
    }

    .admin-nav-item {
      flex: 1;
      min-width: 120px;
    }

    .modal-container {
      width: 95%;
    }

    .knowledge-item,
    .document-item {
      flex-direction: column;
      gap: 1rem;
    }

    .knowledge-actions,
    .document-actions {
      width: 100%;
      justify-content: flex-end;
    }
  }

  .no-data-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: #909399;
    font-size: 14px;
    background-color: #f5f7fa;
    border-radius: 4px;
    margin: 10px 0;
  }

  .profile-chart {
    height: 300px;
    position: relative;
  }

  .profile-chart .no-data {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #909399;
    font-size: 14px;
    background-color: #f5f7fa;
  }

  /* 学生搜索样式 */
.student-search {
    margin: 16px 0;
    padding: 0 16px;
  }

  .search-input-wrapper {
    position: relative;
    max-width: 100%;
    display: flex;
    align-items: center;
  }

  .search-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
  }

  .search-input {
    width: 100%;
    padding: 10px 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8fafc;
    transition: all 0.2s;
  }

  .search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }

  .clear-search {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
  }

  .clear-search:hover {
    background-color: #f1f5f9;
  }

  /* 空搜索结果样式 */
  .empty-search-result {
    padding: 48px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
  }

  .empty-search-result svg {
    margin-bottom: 16px;
    color: #94a3b8;
  }

  .empty-search-result p {
    font-size: 16px;
    margin: 0;
  }

  .batch-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
  }

  .student-actions-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .student-actions-right {
    display: flex;
    align-items: center;
  }

  .student-selection {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .student-selection input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
  }

  .student-selection label {
    font-size: 14px;
    cursor: pointer;
    user-select: none;
  }

/* 学生管理工具栏 */
.student-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px; /* 设置间距，使元素间距更加合理 */
}

.student-search {
  flex: 1;
  max-width: 300px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
}

.search-input {
  width: 100%;
  padding: 10px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background-color: #f8fafc;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
}

.clear-search:hover {
  background-color: #f1f5f9;
}

/* 全选按钮 */
.student-selection {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.student-selection input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.student-selection label {
  cursor: pointer;
  user-select: none;
}

/* 添加学生按钮 */
.student-actions-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.student-actions-right .action-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.student-actions-right .action-button:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

.student-actions-right .action-button.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #2563eb;
  color: white;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.student-actions-right .action-button.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}
/* 横向选择布局 */
.selection-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  background-color: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group-horizontal {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

.form-group-horizontal label {
  font-size: 14px;
  color: #374151;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group-horizontal select {
  height: 40px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 0 12px;
  transition: all 0.2s;
  background-color: white;
}

.form-group-horizontal select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
  outline: none;
}

.form-group-horizontal.disabled label {
  color: #9ca3af;
}

.form-group-horizontal.disabled select {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-available;
}

/* 美化预览区域 */
.preview-container {
  background-color: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-top: 12px;
  overflow: hidden;
}

.preview-header {
  background-color: #f3f4f6;
  padding: 10px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.preview-header h4 {
  margin: 0;
  font-size: 16px;
  color: #111827;
}

.preview-students {
  max-height: 300px;
  overflow-y: auto;
  padding: 0 8px;
}

.preview-student-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.preview-student-item:last-child {
  border-bottom: none;
}

.preview-student-item .student-name {
  font-weight: 500;
  color: #111827;
}

.preview-student-item .student-id {
  color: #6b7280;
  font-size: 14px;
}

/* 添加到你的 CSS 文件中 */
.class-filter {
  margin-right: 16px;
}

.multi-select-dropdown {
  position: relative;
  width: 220px;
}

.multi-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  user-select: none;
}

.dropdown-icon {
  transition: transform 0.2s;
}

.dropdown-icon.open {
  transform: rotate(180deg);
}

.multi-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.multi-select-all,
.multi-select-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
}

.multi-select-all:hover,
.multi-select-option:hover {
  background-color: #f5f7fa;
}

.multi-select-all input,
.multi-select-option input {
  margin-right: 8px;
}

.student-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .multi-select-dropdown {
    width: 100%;
  }

  .student-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .class-filter,
  .student-search,
  .student-selection {
    width: 100%;
    margin-bottom: 12px;
  }

  .student-actions-right {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

/* 文件夹列表样式 */
.folder-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.folder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 8px;
  background-color: #f9f9fb;
  border: 1px solid #eaeaea;
  transition: all 0.2s ease;
}

.folder-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: #d0d0d0;
}

.folder-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex: 1;
}

.folder-name {
  font-weight: 500;
  color: #333;
}

.folder-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 文件列表样式 */
.files-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 6px;
  background-color: #f9f9fb;
  border: 1px solid #eaeaea;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.file-name {
  font-weight: 500;
  color: #333;
}

.file-date {
  font-size: 0.85rem;
  color: #666;
  margin-left: auto;
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 上传区域样式 */
.file-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 2px dashed #d0d0d0;
  border-radius: 8px;
  background-color: #f9f9fb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload-area:hover {
  border-color: #3b82f6;
  background-color: #f0f7ff;
}

.hidden-input {
  display: none;
}

.upload-hint {
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
  text-align: center;
}

.selected-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
  background-color: #f0f7ff;
  border: 1px solid #d1e3ff;
}

.selected-file .file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-file .file-name {
  font-weight: 500;
}

.selected-file .file-size {
  font-size: 0.85rem;
  color: #666;
}

.remove-file {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
}

.remove-file:hover {
  color: #f56565;
}

/* 重命名弹窗样式 */
.rename-modal {
  max-width: 400px;
}

.rename-modal .form-group {
  margin-bottom: 1rem;
}

.rename-modal .form-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.rename-modal .form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* 文件夹列表样式优化 */
.folder-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.folder-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.folder-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.folder-info {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.folder-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7ff;
  border-radius: 12px;
  color: #3b82f6;
}

.folder-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1f2937;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-actions {
  padding: 1rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* 文件列表样式优化 */
.files-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.file-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.file-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.file-info {
  padding: 1.25rem;
  flex: 1;
}

.file-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.file-details {
  display: flex;
  gap: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.file-actions {
  padding: 1rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* 空状态样式优化 */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state svg {
  margin-bottom: 1rem;
  color: #9ca3af;
}

.empty-state p {
  color: #6b7280;
  font-size: 1rem;
}

/* 调整模态框层级 */
.modal-backdrop {
  z-index: 1000;
}

.modal-container {
  z-index: 1001;
}

/* 重命名模态框特别提高层级 */
.rename-modal {
  z-index: 1100;
}

.rename-modal + .modal-backdrop {
  z-index: 1099;
}

/* 确保文件列表模态框在下面 */
.files-modal {
  z-index: 1001;
}

.files-modal + .modal-backdrop {
  z-index: 1000;
}

/* 修改文件夹名称和文件名称的样式 */
.folder-name, .file-name {
  max-width: 200px; /* 设置最大宽度 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}

/* 添加悬停时显示完整名称的样式 */
.folder-name:hover::after, .file-name:hover::after {
  content: attr(data-fullname);
  position: absolute;
  left: 0;
  top: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 1000;
  white-space: normal;
  max-width: 300px;
  word-break: break-word;
}

/* 调整文件夹和文件列表的布局 */
.folder-item, .file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.folder-info, .file-info {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0; /* 确保flex布局下文本可以正确截断 */
}

/* 调整文件夹图标和名称的布局 */
.folder-icon {
  margin-right: 12px;
  flex-shrink: 0;
}

/* 调整文件详情布局 */
.file-details {
  display: flex;
  flex-direction: column;
  margin-left: 12px;
  min-width: 0; /* 确保flex布局下文本可以正确截断 */
}

/* 调整文件操作按钮的布局 */
.folder-actions, .file-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* 调整文件夹和文件信息布局为纵向排列 */
.folder-info, .file-info {
  display: flex;
  flex-direction: column;  /* 改为纵向排列 */
  justify-content: center;
  flex: 1;
  min-width: 0; /* 确保flex布局下文本可以正确截断 */
}

/* 调整文件夹和文件名称样式 */
.folder-name, .file-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  font-weight: 500;  /* 加粗名称 */
  margin-bottom: 4px; /* 添加底部间距 */
}

/* 调整创建时间样式 */
.file-date {
  color: #666;
  font-size: 12px;  /* 减小字体大小 */
  margin-top: 2px;  /* 添加上方间距 */
}

/* 调整文件详细信息的布局 */
.file-details {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}

/* 确保文件和文件夹项目的整体高度合适 */
.folder-item, .file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  min-height: 60px; /* 确保有足够的高度容纳两行内容 */
}

/* 调整文件夹图标垂直对齐 */
/*.folder-icon {*/
/*  margin-right: 12px;*/
/*  flex-shrink: 0;*/
/*  align-self: flex-start;  !* 与顶部对齐 *!*/
/*  margin-top: 2px;  !* 微调图标位置 *!*/
/*}*/

/* 修改班级筛选下拉框中文本的样式 */
.multi-select-header span {
  font-size: 14px;  /* 与搜索框字体大小一致 */
  color: #64748b;   /* 灰色，与搜索框中的颜色一致 */
}

/* 为了保持整体外观一致，也可以调整下拉框的其他样式 */
.multi-select-header {
  padding: 10px 12px; /* 调整内边距，使高度与搜索框更接近 */
  background-color: #f8fafc; /* 与搜索框背景色一致 */
}

/* 调整下拉框显示班级名称的样式 */
.multi-select-header {
  padding: 10px 12px;
  background-color: #f8fafc;
  min-height: 40px; /* 确保高度一致 */
}

.multi-select-header span {
  font-size: 14px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px; /* 控制文本长度，防止过长 */
  display: inline-block;
}

/* 作业/试卷样式 */
.exam-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.exam-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.exam-info {
  flex: 1;
}

.exam-name {
  font-weight: 600;
  margin-bottom: 6px;
}

.exam-details {
  display: flex;
  gap: 16px;
  color: #666;
  font-size: 0.9em;
}

.exam-actions {
  display: flex;
  gap: 8px;
}

.form-group-row {
  display: flex;
  gap: 16px;
}

.form-group.half {
  flex: 1;
}

.generating-container {
  padding: 16px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.generation-progress {
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 12px;
  margin-top: 8px;
  background-color: #f9f9f9;
}

.progress-message {
  padding: 4px 0;
  border-bottom: 1px dashed #eee;
  font-size: 0.9em;
  color: #555;
}

.progress-message:last-child {
  border-bottom: none;
}

